#include <cstdio>

class Point
{
	public:
		double x, y;

		Point(double _x=0, double _y=0)
		{
			x = _x;
			y = _y;
		}

		// Move to (_x, _y).
		void Move(double _x, double _y)
		{
			x = _x;
			y = _y;
		}
};

class CRectangle
{
	public:
		double width, height;

		CRectangle(double _x=0, double _y=0, double _w=0, double _h=0)
		{
			point.Move(_x, _y);
			width = _w;
			height = _h;
		}

		// Set width and height.
		void Size(double _w, double _h)
		{
			width = _w;
			height = _h;
		}

		// Move to (_x, _y).
		void Move(double _x, double _y)
		{
			point.Move(_x, _y);
		}

		double Area()
		{
			return width * height;
		}

		Point Where()
		{
			return point;
		}
	
	private:
		Point point;
};

void print_rectangle_info(CRectangle rct)
{
	Point point = rct.Where();
	printf("x = %.2lf   y = %.2lf\n", point.x, point.y);
	printf("width = %.2lf   height = %.2lf\n", rct.width, rct.height);
	printf("S = %.2lf\n", rct.Area());
}

int main()
{
	double x, y, width, height;
	printf("Enter x, y, width, height seperate by space: ");
	scanf("%lf %lf %lf %lf", &x, &y, &width, &height);

	CRectangle rct(x, y, width, height);

	print_rectangle_info(rct);

	return 0;
}
